package function;

/**
 * @time: 2019/12/2 9:36
 * @author: baozi
 */
public class functionClass {

    public static void main(String[] args) {

        /*new Class(){
          functon;
        };*/

        //lambda表达式
        /*()->{};
        ()->*/

        runThread(()->System.out.println(Thread.currentThread().getName()));

        runThread(new Runnable(){
            @Override
            public  void run(){
                System.out.println(Thread.currentThread().getName());
            }
        });

    }

    public static void runThread(Runnable run){
        new Thread(run).start();

    }
}
